import request from '@/utils/request'

// 列表-分页
export function portList(data) {
	return request({
		url: '/project/appType/page',
		method: 'GET',
		data
	})
}

// 列表-无分页
export function portAllList() {
	return request({
		url: '/project/appType/list',
		method: 'GET',
		data: {}
	})
}

// 详情
export function portDetail(id) {
	return request({
		url: `/project/appType/get?id=` + id,
		method: 'GET',
	})
}

// 删除
export function portDelete(id) {
	return request({
		url: '/project/appType/delete?id=' + id,
		method: 'DELETE'
	})
}

// 修改
export function portEdit(data) {
	return request({
		url: '/project/appType/update',
		method: 'PUT',
		data
	})
}

// 新增
export function portAdd(data) {
	return request({
		url: '/project/appType/create',
		method: 'POST',
		data
	})
}

export function getTypeList(query) {
  return request({
    url: '/project/type/list',
    method: 'get',
    params: query
  })
}
